import { createApp } from "vue";
import ArcoVue from "@arco-design/web-vue";
import ArcoVueIcon from "@arco-design/web-vue/es/icon";
import App from "./App.vue";
import router from "@/router";
import ElementPlus from "element-plus";
import store from "@/store/index";
import "@/router/permission";
// css
import "./styles/reset.scss";
import "@arco-design/web-vue/dist/arco.css";
import "element-plus/dist/index.css";
const app = createApp(App);
app.use(ElementPlus);
app.use(ArcoVue, {});
app.use(ArcoVueIcon);
app.use(store).use(router);

// 注册所有图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount("#app");
